#include <stdio.h>
#include "at32f403a_407.h"
#include "at32f403a_407_board.h"
#include "los_task.h"
#include "devmgr_service_start.h"
#include "los_memory.h"
#include "mySysCfg.h"



int main(void)
{
    int ret;
    system_clock_config();
    at32_board_init();          
    uart_print_init(9600, 0);   
    ret = LOS_KernelInit();

    if (ret == LOS_OK) 
    {
        OHOS_SystemInit();

        WTD_Service();

        LocalCom2_Service();			// 串口通讯服务

        PLC_Service();              // 载波通信服务

        Inverter_Service();       //协议转换处理服务
        
        LOS_Start();
    }
    while(1) {}
}

